function axiosPost(url, data, author) {
  if (author)
    axios.defaults.headers.common['Authorization'] = localStorage.getItem('token');
  return axios({
    method: "post",
    url,
    data,
    baseURL: "http://localhost:3000",
    headers: { "Content-Type": "application/x-www-form-urlencoded" },
  });
}
function axiosGet(url, params, author) {
  if (author)
    axios.defaults.headers.common['Authorization'] = localStorage.getItem('token');
  return axios({
    method: "get",
    url,
    params,
    baseURL: "http://localhost:3000"
  });
}